<html>
  <head>
    <title>Simple WebSerivice</title>
   <script src="./lib/jquery.js" ></script>
   <meta name="viewport" content="width=device-width, initial-scale=1"> 
	<link rel="stylesheet" href="./lib/jquery.mobile-1.1.1.min.css" />
	<script src="./lib/jquery-1.7.1.min.js"></script>
	<script language="JavaScript" SRC="config.js"></script>
	<script src="./lib/jquery.mobile-1.1.1.min.js"></script>
    <script type="text/javascript" charset="utf-8">
    function loadData(title){
  alert(title);
  //$.getJSON("http://10.0.2.2/phonegap/hello.php?username=" + user + "&callback=?",
  $.getJSON('http://'+serverip+'/socialengine/mobileservice/changetitle?title=' + title + '&callback=?',
   function(data){
    alert(data.Message);
  });
 }
    </script>
  </head>
<body>
<div data-role="page">
	<div data-role="header">
	<a href="index.html" data-role="button" data-icon="home" data-iconpos="notext" rel="external">Home</a>
		<h1>Change Title</h1>
	</div><!-- /header -->
	<div data-role="content">	
 <form name="myForm">
  <input type="text" name="title" id="title" /><br/>
  <input type="button" value="Submit" onclick="loadData(document.myForm.title.value);" />
 </form>
  </body>
  </p>		
	</div><!-- /content -->

</div><!-- /page -->
</html>